package com.maben.netty.controller;

import com.maben.netty.udp.UdpClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UdpController {
    @Resource
    private UdpClient udpClient;

    @RequestMapping("sendUdp")
    public String sentUdp() {
        udpClient.sendMessage("3082010702010104067075626c6963a781f902045536dca90201000201003081ea301006082b060102010103004304eeebe28b3017060a2b06010603010104010006092b06010401e0396300301506092b060104010c04010104083132333435363738301306092b060104010c0401020406313233343536301a06092b060104010c040103040d3139322e3136382e37302e3930300f06092b060104010c04010404023130301b06092b060104010c040105040e3139322e3136382e37302e313032300f06092b060104010c04010604023830301606092b060104010c0401070409313233343536373839300e06092b060104010c040108040131300e06092b060104010c040109040131");
        return "ok";
    }
}
